<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html 		xmlns="http://www.w3.org/1999/xhtml"
			xmlns:ui="http://java.sun.com/jsf/facelets"
			xmlns:h="http://java.sun.com/jsf/html"
			xmlns:f="http://java.sun.com/jsf/core"
			xmlns:a4j="http://richfaces.org/a4j"
			xmlns:rich="http://richfaces.org/rich"
			xmlns:t="http://myfaces.apache.org/tomahawk">

	<head>
		<title>
			<h:outputText value="#{bundle.tituloAplicacao}" /> 
		</title>
		
		<link rel="stylesheet" type="text/css" href="/#{bundle.pathAplicacao}/css/geral.css" />
		<link rel="stylesheet" type="text/css" href="/#{bundle.pathAplicacao}/css/estilo.css" />
		
	</head>
	
	<body>
		<div style="width: 155px; float:left;">
			<div style="height: 31px; background: url(/#{bundle.pathAplicacao}/imagens/topoMenu.png); text-align: center;">
				<a href="javascript:esconderAparecerDiv('itensMenu');">
					<font style="color: white; font-size: 18px; font-weight: bold;">VDN</font>
				</a>
			</div>
			<div id="itensMenu" style="background: url(/#{bundle.pathAplicacao}/imagens/fundoMenu.png); height: 600px; width: 146px;">
				<h:form id="menuForm">
		        	<ui:insert name="menu">
		            	<ui:include src="menu.xhtml"/>
		            </ui:insert>
		        </h:form>
	        </div>
		</div>
		
		<div style="float:left; width: 80%;">
			<div style="height: 20px; text-align: right;">
				<a4j:form id="logout">
					<h:outputText value="Bem Vindo, #{loginBean.usuarioVo.nome}"/>
					<h:outputText value=" - " />
					<h:commandLink value="alterar senha" action="#{alterarSenhaBean.preparaAlterar}"/>
					<h:outputText value=" | " />
					<h:commandLink value="sair" action="#{loginBean.logout}"/>
				</a4j:form>
			</div>
			<div style="margin-top: 20px;">
				<h:panelGroup id="panelTitle">
	                <table class="messageTable">
	                    <tr>
	                        <td class="tituloform">
	                            <b>#{pageTitle}</b>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td><ui:insert name="requiredFieldsMessage" /></td>
	                    </tr>
	                    <tr>
	                      <td>
	                        <a4j:outputPanel  ajaxRendered="true">
	                            <rich:messages layout="table" warnClass="msgWarm" errorClass="msgError" infoClass="msgInfo" globalOnly="true">
	                            	<f:facet name="errorMarker">
										<h:graphicImage value="/imagens/alerta.png"/>   
									</f:facet>
	                            </rich:messages>
	                        </a4j:outputPanel>
	                      </td>             
	                    </tr>
	                </table>
	            </h:panelGroup>
	            <hr/>
			</div>
			<div>
				<a4j:outputPanel id="painelMundial">       
		            <a4j:loadScript src="/script/util.js" />
		             
		            <ui:insert name="saveStateObjects" />
					<ui:insert name="saveStateObjectsDefined" />
		         
		             <ui:insert name="content" />
	             </a4j:outputPanel>
	             
	             <br />
		             
	             <ui:insert name="list"/>
			</div>
		</div>
	</body>
</html>